package com.ncloud.system.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.ncloud.system.entity.Email;

@Mapper
public interface EmailMapper {

	@Insert(value = ("insert into bs_o_email (sys_code,subject,msg_from,msg_to,content,attach,template_name,"
			+ "msg_type,date_order,cc,bcc,msg_code,msg_result,create_time,msg_exception,para_code2,para_code1)"
			+ " values(#{sysCode},#{subject},#{msgFrom},#{msgTo},#{content},#{attach},#{templateName},#{msgType},"
			+ "#{dateOrder},#{cc},#{bcc},#{msgCode},#{msgResult},now(),#{msgException},#{paraCode2},#{paraCode1})"))
	void insertEmail(Email mail);

}
